package com.realwronger.common;

public class User {
	String name;
	int year;
	String favor;

	public User() {
	}

	public User(String name, int year, String favor) {
		this.name = name;
		this.year = year;
		this.favor = favor;
		System.out.println("This is User constructing.");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public String getFavor() {
		return favor;
	}

	public void setFavor(String favor) {
		this.favor = favor;
	}

	@Override
	public String toString() {
		return "User(name[" + name + "], year[" + year + "], favor[" + favor
				+ "])";
	}
}
